home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-04-10 | 4.9 KB | 139 lines | [TEXT/MPS ] |
- % ---------------------------------------------------------------------------
- % Class TOOLBOXUtilities
- %
- % the routines listed in Inside Macintosh chapter X:
- % The code has been converted from the file ToolInft.p
- % In this module you find the interfaces to Geral utility procedures.
- % You will find the programmers interface built on
- % top of this interface in MacUtilities.
- %
- % 890317/Boris Magnusson
- %
- % ---------------------------------------------------------------------------
- class TOOLBOXUtilities;
- begin
- ! General Utilities ;
-
- External TOOLBOX procedure x="$A858" is
- Integer procedure TOOLBOXBitAnd(long1,long2); integer long1,long2;;
-
- External TOOLBOX procedure x="$A85B" is
- Integer procedure TOOLBOXBitOr(long1,long2); integer long1,long2;;
-
- External TOOLBOX procedure x="$A859" is
- Integer procedure TOOLBOXBitXor(long1,long2); integer long1,long2;;
-
- External TOOLBOX procedure x="$A85A" is
- Integer procedure TOOLBOXBitNot(long1); integer long1;;
-
- External TOOLBOX procedure x="$A85C" is
- Integer procedure TOOLBOXBitShift(long1,count); integer long1; short integer count;;
-
- External TOOLBOX procedure x="$A85D" is
- Boolean procedure TOOLBOXBitTst(bytePtr,bitNum);name bytePtr;
- text bytePtr; integer bitNum;;
-
- External TOOLBOX procedure x="$A85E" is
- procedure TOOLBOXBitSet(bytePtr,bitNum);name bytePtr;
- text bytePtr; integer bitNum;;
-
- External TOOLBOX procedure x="$A85F" is
- procedure TOOLBOXBitClr(bytePtr,bitNum);name bytePtr;
- text bytePtr; integer bitNum;;
-
- % External TOOLBOX procedure x="$A867" is
- % procedure TOOLBOXLongMul(a, b: LONGINT; VAR dst: Int64Bit);
-
- External TOOLBOX procedure x="$A868" is
- % FixMul(a, b: Fixed): Fixed;
- integer procedure TOOLBOXFixMul(a, b);integer a,b;;
-
- External TOOLBOX procedure x="$A869" is
- % FixRatio(numer, denom: INTEGER): Fixed;
- Integer procedure TOOLBOXFixRatio(numer,denom); short integer numer,denom;;
-
- External TOOLBOX procedure x="$A86A" is
- short Integer procedure TOOLBOXHiWord(x); integer x;;
-
- External TOOLBOX procedure x="$A86B" is
- short Integer procedure TOOLBOXLoWord(x); integer x;;
-
- External TOOLBOX procedure x="$A86C" is
- short Integer procedure TOOLBOXFixRound(x); integer x;;
-
- % External TOOLBOX procedure x="$A8CF" is
- % procedure TOOLBOXPackBits(VAR srcPtr, dstPtr: Ptr; srcBytes: INTEGER);
-
- % External TOOLBOX procedure x="$A8D0" is
- % procedure TOOLBOXUnPackBits(VAR srcPtr, dstPtr: Ptr; dstBytes: INTEGER);
-
- External TOOLBOX procedure x="$A8BC" is
- % SlopeFromAngle(angle: INTEGER): Fixed;
- Integer procedure TOOLBOXSlopeFromAngle(angle); short integer angle;;
-
- External TOOLBOX procedure x="$A8C4" is
- % AngleFromSlope(slope: Fixed): INTEGER;
- short Integer procedure TOOLBOXAngleFromSlope(slope); integer slope;;
-
- External TOOLBOX procedure x="$A94F" is
- % DeltaPoint(ptA, ptB: Point): LONGINT;
- Integer procedure TOOLBOXDeltaPoint(ptA_v, ptB_v); name pta_v,ptb_v;
- short integer pta_v,ptb_v;;
-
- External TOOLBOX procedure x="$A906" is
- % NewString(theString: Str255): StringHandle;
- Integer procedure TOOLBOXNewString(Str255);name Str255; text Str255;;
-
- External TOOLBOX procedure x="$A907" is
- % SetString(theString: StringHandle; strNew: Str255);
- procedure TOOLBOXSetString(StringHandle,Str255);name Str255;
- integer StringHandle; text Str255;;
-
- External TOOLBOX procedure x="$A9BA" is
- % GetString(stringID: INTEGER): StringHandle;
- Integer procedure TOOLBOXGetString(stringID); short integer StringID;;
-
- % External TOOLBOX procedure x="" is
- % procedure TOOLBOX GetIndString(VAR theString: Str255; strListID: INTEGER;
- % index: INTEGER);
- %
- % External TOOLBOX procedure x="$A9E0" is
- % Integer procedure TOOLBOX Munger(h: Handle; offset: LONGINT; ptr1: Ptr; len1: LONGINT;
- % ptr2: Ptr; len2: LONGINT): LONGINT;
- % INLINE $A9E0;
-
- External TOOLBOX procedure x="$A9BB" is
- % GetIcon(iconID: INTEGER): Handle;
- Integer procedure TOOLBOXGetIcon(iconID); short integer iconID;;
-
- External TOOLBOX procedure x="$A94B" is
- % PlotIcon(theRect: Rect; theIcon: Handle);
- procedure TOOLBOXPlotIcon(theRect_top,theIcon); name theRect_top;
- short integer theRect_top; integer theIcon;;
-
- External TOOLBOX procedure x="$A9B9" is
- % GetCursor(cursorID: INTEGER): CursHandle;
- Integer procedure TOOLBOXGetCursor(cursorID); short integer cursorID;;
-
- External TOOLBOX procedure x="$A9B8" is
- % GetPattern(patID: INTEGER): PatHandle;
- Integer procedure TOOLBOXGetPattern(patID); short integer patID;;
-
- External TOOLBOX procedure x="$A9BC" is
- % GetPicture(picID: INTEGER): PicHandle;
- Integer procedure TOOLBOXGetPicture(picID); short integer picID;;
-
- % External TOOLBOX procedure x="" is
- % procedure TOOLBOX GetIndPattern(VAR thePat: Pattern; patListID: INTEGER;
- % index: INTEGER);
-
- External TOOLBOX procedure x="$A855" is
- % ShieldCursor(shieldRect: Rect; offsetPt: Point);
- procedure TOOLBOXShieldCursor(shieldRect_top,offsetPt_v);
- name shieldRect_top,offsetPt_v; short integer shieldRect_top,offsetPt_v;;
-
- % External TOOLBOX procedure x="" is
- % procedure TOOLBOXScreenRes(VAR scrnHRes, scrnVRes: INTEGER);
-
-
- END --- TOOLBOX Utilities --- ;